<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!-- saved from url=(0041)http://v3.bootcss.com/examples/dashboard/ -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">

    <title>Dashboard Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="/study/Public/news/bootstrap.min.css" rel="stylesheet">
     <script type="text/javascript" src="/study/Public/bootstrap/js/jquery.min.js"></script>
     <script type="text/javascript" src="/study/Public/bootstrap/js/bootstrap.min.js"></script>
    <!--  <link href="/study/Public/assets/css/bootstrap.css" rel="stylesheet">
      <link href="/study/Public/assets/css/theme.css" rel="stylesheet">
    -->
    <!-- Custom styles for this template -->
    <link href="/study/Public/news/dashboard.css" rel="stylesheet">
    
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="/study/Public/news/ie-emulation-modes-warning.js"></script>

    
   
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
    .img{
        width: 300px;
        height: 200px;
    }
    </style>
</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="http://v3.bootcss.com/examples/dashboard/#">YCG</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="http://v3.bootcss.com/examples/dashboard/#">Dashboard</a></li>
                <li><a href="<?php echo U('Login/login');?>">Login</a></li>
                <li><a href="<?php echo U('Login/updatePass');?>">修改密码</a></li>
                <li><a href="<?php echo U('Login/logout');?>">logout</a></li>
            </ul>
            <form class="navbar-form navbar-right">
                <input type="text" class="form-control" placeholder="Search...">
            </form>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <li class="active"><a href="<?php echo U('Index/userlist');?>">用户管理 <span class="sr-only">(current)</span></a></li>
                <li><a href="<?php echo U('Index/addUser');?>">添加用户</a></li>
            </ul>
            <ul class="nav nav-sidebar">
                <li class="active"><a href="<?php echo U('Group/grouplist');?>">社团管理</a></li>
                <li><a href="<?php echo U('Group/addGroup');?>">添加社团</a></li>
            </ul>
            <ul class="nav nav-sidebar">
                <li class="active"><a href="<?php echo U('Practice/practicelist');?>">社团活动管理</a></li>
                <li><a href="<?php echo U('Practice/addPractices');?>">添加社团活动</a></li>
            </ul>
        </div>
       
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

<?php  $con =mysql_connect('localhost','root',''); if (!$con) { die('数据库不存在'.mysql_errno()); } mysql_set_charset('utf8'); $db=mysql_select_db('study',$con); $sql='select * from groups where gid='.$_GET['id']; $result=mysql_query($sql,$con); while ($row=mysql_fetch_assoc($result)) { echo'<h1>社团名称：'.$row['groupname'].'</h1>'; } ?>
<?php if(is_array($users)): $i = 0; $__LIST__ = $users;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><form action="doaddGroupUser"  method="post"  class="form-horizontal">
<table border  width="80%" class="table table-striped table-bordered table-hover">
<div>
<input type="hidden" name="gid" value="<?php echo ($_GET['id']); ?>"></input>

    <div class="form-group">
    <label for="username" class="col-sm-2 control-label">用户名:</label>
    <div class="col-sm-6">
    <input type="text" class="form-control" id="username" name="username" value="<?php echo ($vo["username"]); ?>">
    </div></div>

     <div class="form-group">
    <label for="stunum" class="col-sm-2 control-label">学号:</label>
    <div class="col-sm-6">
    <input type="text" class="form-control" id="stunum" name="stunum" value="<?php echo ($vo["stunum"]); ?>">
    </div></div>

    <input type="hidden" name="state" value="1"></input>
    <div class="form-group">
    <div class="col-sm-offset-2  col-sm-6">
	<button type="submit" class="btn btn-default">添加</button>
    </div></div></div>
   
</form><?php endforeach; endif; else: echo "" ;endif; ?> 

</div>
</div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/study/Public/news/jquery.min.js"></script>
<script src="/study/Public/news/bootstrap.min.js"></script>
<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
<script src="/study/Public/news/holder.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="/study/Public/news/ie10-viewport-bug-workaround.js"></script>


</body></html>